package com.ai.wxy.spring.jpa.user.entity;

import com.ai.spring.data.jpa.domain.JpaEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 角色菜单权限
 *
 * @author 石头
 * @Date 2019/11/19
 * @Version 1.0
 **/
@Data
@Entity
@Table(name="jpa_menu_role_perm")
public class MenuRolePerm extends JpaEntity {
    /**主键*/
    @Id
    private Long id;
    /**菜单URL(ANT风格)*/
    @Column(name = "menu_url_pattern")
    private String menuUrlPattern;
    /**角色id*/
    @Column(name = "role_id")
    private Long roleId;

    /**创建人*/
    @Column(name = "create_by")
    private String createBy;
    /**更新人*/
    @Column(name = "update_by")
    private String updateBy;
    /**状态(0-无效,1-正常,2-冻结)*/
    private Integer status;
    /**创建时间*/
    @Column(name = "create_time",insertable = false,updatable = false)
    private Date createTime;
    /**更新时间*/
    @Column(name = "update_time",updatable = false,insertable = false)
    private Date updateTime;
}
